add_subdirectory(dict)
add_library(spell MODULE spell.cpp spell-enchant.cpp spell-custom-dict.cpp spell-custom.cpp)
target_link_libraries(spell Fcitx5::Core PkgConfig::Enchant)
set_target_properties(spell PROPERTIES PREFIX "")
install(TARGETS spell DESTINATION "${FCITX_INSTALL_ADDONDIR}")
fcitx5_translate_desktop_file(spell.conf.in spell.conf)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/spell.conf" DESTINATION "${FCITX_INSTALL_PKGDATADIR}/addon")
fcitx5_export_module(Spell TARGET spell BUILD_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}" HEADERS spell_public.h INSTALL)
